<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="zh"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="zh"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="zh"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html style="" class=" js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths" lang="zh">
<!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="http://www.toutoupiao.com/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>
        投票网
    </title>
    <link href="{{asset('/css/style.css')}}" rel="stylesheet" />
    <meta name="keywords" content="投票,文字投票,图片投票,视频投票,免费投票,网络投票,微信投票,市场调查,生活调查,生活决策,投票网" />
    <meta name="description" content="投票网，只需简单几步即可创建投票。无论是文字投票、图片投票、视频投票您都能轻松实现，并且您还能把投票分享给周围的每一个人，让大家实时参与，互动评论。" />
    <meta charset="UTF-8" />
    <title>首页666</title>
    <style type="text/css" media="screen">
        li{
            float: left;
            color:white;
            font: 25px/30px '微软雅黑','黑体',sans-serif;
            color: white;
        }
    </style>

    <style type="text/css" media="screen">
        #ad{
            width: 1024px;
            height: 768px;
            overflow: hidden;
            position: relative;
            text-align: center;
        }

        .uw-text a:hover{
            color:firebrick;
        }

          #aa{
             font: 25px/30px '微软雅黑','黑体',sans-serif;
          }
            #div99{
            position:fixed;
            top:0;
            left:0;
            bottom:0;
            right:0;
            z-index:-1;
            }
            div#div99 > img {
            height:100%;
            width:100%;
            border:0;
            }
                 
    </style>
</head>
<body class="right-sb">
<div id="div99"><img src="{{asset('/images/1.jpg')}}"/></div>
<div class="container">
    <!-- Start Header -->
    <header class="header-wrap clearfix" style=":rgba(0,0,0,0.1);">
        <div class="slicknav_menu">
            <a href="#" aria-haspopup="true" tabindex="0" class="slicknav_btn slicknav_collapsed" style="outline: medium none;"><span class="slicknav_menutxt">MENU</span><span class="slicknav_icon"><span class="slicknav_icon-bar"></span><span class="slicknav_icon-bar"></span><span class="slicknav_icon-bar"></span></span></a>
            <nav class="slicknav_nav slicknav_hidden" style="display: none;" aria-hidden="true" role="menu">
                <div class="menu-navigation-container">
                    <ul class="menu">
                        <li><a href="" role="menuitem">注册</a></li>
                        <li><a href="" role="menuitem">登录</a></li>
                        <li><a href="" role="menuitem">帮助</a></li>
                    </ul>
                </div>
            </nav>
        </div>
        <div class="logo" role="banner">
            <a href="/" title="投票网" rel="home">
                <div class="logo-text">
                    <h1 class="logo-name" style="color:darkkhaki; line-height: 48px;text-align:center;"><b>必赢投票网</b></h1>
                </div> </a>
        </div>
        <nav class="main-nav clearfix">
            <div class="menu-navigation-container">
                <ul id="menu-navigation" class="menu">
                    @if (Auth::check())
                        <li>
                            <a class="username" href="">{{ Auth::user()->name }}</a>
                            <ul class="sub-menu">
                                <li><a href="{{url('/createTextVote')}}">文字投票</a></li>
                                <li><a href="{{url('/createImgVote')}}">图片投票</a></li>
                                <li><a href="{{url('/prev')}}">我的菜单</a></li>
                            </ul>
                        </li>
                        <li><a href="{{url('auth/logout')}}">退出</a></li>
                    @else
                        <li><a id="registerLink" href="{{url('auth/register')}}">注册</a></li>
                        <li><a id="loginLink" href="{{url('auth/login')}}">登录</a></li>
                    @endif
                </ul>
            </div>
        </nav>
    </header>
    <!-- End Header -->
    <div class="content-section clearfix">
        <div class="list_carousel clearfix">
        </div>
        <div id="main-content" class="content">
            <div id="newvote">
                @forelse($data as $t)
                    <article class="loop-container clearfix">
                        <header class="entry-header">
                            <div class="clearfix">
                                <h3 class="entry-title"><a href="{{url('/vote',$t['tid'])}}" title="" target="_blank">{{$t['title']}}</a></h3>
                            </div>
                            <p class="entry-meta"><i class="fa fa-clock-o"></i><span class="updated">发布时间：{{date('Y/m/d',$t['pub_time'])}}</span> <i class="fa fa-folder-open-o"></i><span class="entry-category">参与人数：{{$t['person']}}</span> <i class="fa fa-user"></i><span>发布者：{{$t['name']}}</span></p>
                        </header>
                        <div class="entry-content content-margin clearfix">
                            <div class="entry-excerpt">
                                <p>{{$t['desc']}}</p>
                            </div>
                        </div>
                        <ul class="entry-social clearfix">
                            <li class="entry-social-more"><a href="{{url('/vote',$t['tid'])}}" class="more-link">参与投票</a></li>
                        </ul>
                    </article>
                @empty
               
              <!--   <script type="text/javascript">
                    alert("你是逗比吗?");
                    
                </script> -->
                     <!--  <h1><div class="text" style="text-align:center">没有此话题</div></h1> -->
                       <div style="text-align:center" ><img src="{{asset('/d.jpg')}}" alt=""></div>
                       <br>
                       <div style="text-align:center" ><img src="{{asset('/e.jpg')}}" alt=""></div>
                       
                @endforelse    
                <div class="entry-content content-margin clearfix">
                    <div class="entry-excerpt">
                    </div>
                </div>
            </div>

             @if(count($data) != 0)


                 <div>
                     {!! $data->render() !!}
                 </div>

             @endif

             <br>
             <br>
             <br>
             <br>
             <br>
             <br>
             <br>
             <br>
             <br>
             <br>
             <br>
             <br>
             <br>
             <br>

             

        </div>
        <aside id="main-sidebar" class="sidebar">
            <div class="sb-widget">
                <div class="widget-content">
                    <form action="{{url('/search')}}" class="searchform" id="searchform" method="POST">
                        {!!csrf_field()!!}
                        <div>
                            <input type="text" value="" name="keywords" id="keywords" style=":rgba(0,0,0,0.1);"/>
                            <input type="submit" id="searchsubmit" style=":rgba(0,0,0,0.1)" value="搜索" />

                        </div>
                    </form>
                </div>
            </div>
        </aside>
        <aside id="main-sidebar" class="sidebar">
            <div class="sb-widget">
                <h4 class="widget-title">热门话题：</h4>


                    <div class="widget-content">

                        @foreach($hots as $t)

                        <ul class="user-widget clearfix">

                            <li class="uw-wrap clearfix">
                                <div class="uw-text">
                                    <a href="{{url('/vote', $t->tid)}}" title="" style="">{{$t->title}}</a><br/>
                                    <span style="color:orange;">{{$t->person}}人参与</span>
                                </div>
                            </li>
                        </ul>

                        @endforeach

                    </div>

            </div>
        </aside>
    </div>
    <a href="{{url('/not')}}" class="back-to-top" style="display: none;"><i class="fa fa-chevron-up"></i></a>
</div>
</body>

